/*
 * Entity.java
 *
 * Created on September 16, 2007, 3:12 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package simulationengine.event;

/**
 * The Entity class is the foundation for all of the Entities used in the simulationengine
 * @author edrucker
 */
public class Entity
{
	private double startTime;
	
	/** Creates a new instance of Entity */
	public Entity()
	{
	
	}
        
    /**
     * Creates an entity with the start time passed in
     * @param time time is used to mark the object's arrival time when created
     */
        public Entity(double time)
	{
            setStartTime(time);
	}
	
    /**
     * Returns the time that the Entity entered the system
     * @return double startTime holds the time that the Entity entered the system
     */
	public double getStartTime()
	{
		return startTime;
	}
	
    /**
     * Record time when entering the system (creation)
     * @param t time to set as our born on date
     */
	public void setStartTime(double t)
	{
		startTime = t;
	}
}